﻿<!--
Filename: PrintPreview.xaml
Version: 20150205
-->
<ChildWindowExt
  x:Class="SilverTextEditor.PrintPreview"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Width="400" Height="300"
  Title="Print Preview"
  FontFamily="Calibri"
  FontSize="16"
  >
  
  <Grid x:Name="LayoutRoot" Margin="2">
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
  
    <Border BorderThickness="0.5" BorderBrush="#666" Background="White">
      <!-- TODO: maybe use ZoomImage here -->
      <ScrollViewer>
        <Image x:Name="previewImage" Stretch="Uniform" />  
      </ScrollViewer>
    </Border>
    
    <Button
      x:Name="CancelButton"
      Content="Cancel"
      Click="CancelButton_Click"
      HorizontalAlignment="Right"
      Margin="0,12,0,0"
      Padding="15,0"
      Grid.Row="1"
      />
    
    <Button
      x:Name="OKButton"
      Content="Print"
      Click="OKButton_Click"
      HorizontalAlignment="Right"
      Margin="0,12,79,0"
      Padding="15,0"
      Grid.Row="1"
      />
        
    </Grid>
</ChildWindowExt>
